<template>
	<uv-popup ref="popupRef" mode="center" round="28rpx">
		<view class="car-auth">
			<image src="../static/user/car.png" mode=""></image>
			<view class="name" style="margin-top: 32rpx;">您还未认证为车商</view>
			<view class="name">请先认证</view>
			<button class="cu-btn" @click="handSubmit">去认证</button>
		</view>
	</uv-popup>
</template>

<script setup>
	import {
		reactive,
		ref
	} from 'vue'
	
	const handSubmit = () => {
		uni.navigateTo({
			url: '/pagesA/car/auth'
		})
		handClose()
	}

	const popupRef = ref(null)
	const handOpen = () => {
		popupRef.value.open()
	}
	const handClose = () => {
		popupRef.value.close()
	}

	defineExpose({
		handOpen
	})
</script>

<style lang="scss" scoped>
	.car-auth {
		width: 566rpx;
		background: linear-gradient(181deg, #FFF7E4 20%, #FFFFFF 50%);
		border-radius: 20rpx;
		padding: 34rpx 34rpx 48rpx 34rpx;
		display: flex;
		flex-direction: column;
		align-items: center;
		justify-content: center;

		image {
			width: 362rpx;
			height: 226rpx;
		}

		.name {
			font-size: 30rpx;
			font-family: PingFang SC-Bold, PingFang SC;
			font-weight: bold;
			color: #333333;
			line-height: 50rpx;
		}

		.cu-btn {
			margin-top: 32rpx;
			width: 500rpx;
			height: 88rpx;
			background: #FFC434;
			border-radius: 16rpx;
			font-size: 32rpx;
			font-family: PingFang SC-Medium, PingFang SC;
			font-weight: 500;
			color: #333333;
		}
	}
</style>